package enterprises

class Production {

    static constraints = {
	 	name(blank:false, minSize:3)
		monthlySize(min:0)		
		consumer(nullable:true)
    }
	
	static belongsTo = [Enterprise, Consumer]
	
	static hasMany = [consumer:Consumer] 
	
	
	String name
	Integer monthlySize	= 0
	
	@Override
	public String toString() {
		name;
	}
	
	Enterprise enterprise;
}
